package com.ding.dao;

import com.ding.bean.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * EmployeeMapper
 *
 * @author DYS
 * @date 2021/7/22
 * @time 19:30
 * @Description
 */
@Mapper
@Component
public interface EmployeeMapper {
	//查询所有的员工信息
	List<Employee> getAllEmployees();
	//根据id查询员工信息
	Employee getEmployeeById(int id);
	//增加一个员工
	int addEmployee(Employee employee);
	//删除一个员工
	int delEmployee(int id);
	//修改一个员工
	int updEmployee(Employee employee);
}
